import React, { Component } from 'react'
import Group from './Group'
// import {connect} from 'react-redux'
interface IProps{
    groups:any,
}
export class Connect extends Component<IProps>{
    render() {
        return (
            <div className="connect">
           { this.props.groups.map((item:any,index:number)=>{      
                return <Group 
                    key={index}
                    item={item}
                />
            })}
            </div>
        )
    }
}
 
export default Connect 

